controlling input